#ifndef LOGMANAGERMENU_H
#define LOGMANAGERMENU_H

#include <QWidget>
#include <QSqlQueryModel>
#include <QSqlQuery>

#include "User.h"

namespace Ui {
class LogManagerMenu;
}

class LogManagerMenu : public QWidget
{
    Q_OBJECT

public:
    explicit LogManagerMenu(QWidget *parent = nullptr);
    ~LogManagerMenu();

    static void insertLog(qint64 operationTime, QString operatorName, Role operatorRole, QString operationDescribe);

    void initMenu(void);

private slots:
    void m_on_tv_logInfoList_clicked(const QModelIndex& index);

private:
    Ui::LogManagerMenu *ui;

    QSqlQueryModel* m_sqlQueryModel;
};



#endif // LOGMANAGERMENU_H
